﻿using RabbitMQ.Client;
using System;
using System.Collections.Generic;
using System.Text;

namespace Server
{
    public class CommonConnectionFactory
    {
        //https://www.rabbitmq.com/getstarted.html
        public static ConnectionFactory rabbitMqFactory
        {

            get
            {
                return new ConnectionFactory()
                {
                    HostName = "192.168.11.135",
                    UserName = "test",
                    Password = "test",
                    Port = 5672,
                    VirtualHost = "/"

                    //HostName = "192.168.30.78",
                    //UserName = "test",
                    //Password = "123456",
                    //Port = 5672,
                    //VirtualHost = "/forTest"
                };
            }
        }
    }
}
